class_name TextAreaDemo
extends TextEdit

func _init():
    _loadFont()
    self.show_line_numbers = true;
    # 需要设置大小才会显示
    self.rect_size = Vector2(300,500);
    

func _loadFont():
    var dynamic_font = DynamicFont.new()
    dynamic_font.font_data = load("res://assets/fonts/FZKTK.TTF")
    dynamic_font.size = 32
    self.set("custom_fonts/font", dynamic_font);
